/*
 * rel_fmt.java
 *
 *  LICENÇA CC-GNU LGPL
 * 
 * EXCLUSÃO DE GARANTIA 
1.COMO A BIBLIOTECA É LICENCIADA ELA TERÁ TOTAL GARANTIA DE SUPORTE TÉCNICO,
  MAS CASO O CÓDIGO-FONTE SOFRA ALTERAÇÕES, NÃO HAVERÁ NENHUMA GARANTIA PARA A 
  BIBLIOTECA, NO LIMITE PERMITIDO PELA LEI APLICÁVEL. EXCETO QUANDO DE OUTRA FORMA
  ESTABELECIDO POR ESCRITO, OS TITULARES DOS DIREITOS AUTORAIS E/OU OUTRAS PARTES 
  FORNECEM A BIBLIOTECA "NO ESTADO EM QUE SE ENCONTRA", SEM NENHUMA GARANTIA DE 
  QUALQUER TIPO, TANTO EXPRESSA COMO IMPLÍCITA, INCLUINDO, DENTRE OUTRAS, AS GARANTIAS
  IMPLÍCITAS DE COMERCIABILIDADE E ADEQUAÇÃO PARA UMA FINALIDADE ESPECÍFICA. 
  O RISCO INTEGRAL QUANTO À QUALIDADE E DESEMPENHO DA BIBLIOTECA É ASSUMIDO POR VOCÊ.
  CASO A BIBLIOTECA CONTENHA DEFEITOS, VOCÊ ARCARÁ COM OS CUSTOS DE TODOS OS SERVIÇOS,
  REPAROS OU CORREÇÕES NECESSÁRIAS. 

 2.EM NENHUMA CIRCUNSTÂNCIA, A MENOS QUE EXIGIDO PELA LEI APLICÁVEL OU ACORDADO POR 
   ESCRITO, QUALQUER TITULAR DE DIREITOS AUTORAIS OU QUALQUER OUTRA PARTE QUE POSSA 
   MODIFICAR E/OU REDISTRIBUIR A BIBLIOTECA, CONFORME PERMITIDO ACIMA, SERÁ RESPONSÁVEL 
   PARA COM VOCÊ POR DANOS, INCLUINDO ENTRE OUTROS QUAISQUER DANOS GERAIS, ESPECIAIS, 
   FORTUITOS OU EMERGENTES, ADVINDOS DO USO OU IMPOSSIBILIDADE DE USO DA BIBLIOTECA 
   (INCLUINDO, ENTRE OUTROS, PERDA DE DADOS, DADOS SENDO GERADOS DE FORMA IMPRECISA, 
   PERDAS SOFRIDAS POR VOCÊ OU TERCEIROS OU A IMPOSSIBILIDADE DA BIBLIOTECA DE OPERAR 
   COM QUALQUER OUTRO SOFTWARE), MESMO QUE ESSE TITULAR, OU OUTRA PARTE, TENHA SIDO 
   AVISADO SOBRE A POSSIBILIDADE DESSES DANOS.
 * 
 * Created on 20 de Dezembro de 2008, 11:34
 */

package relatorios;


import java.util.HashMap;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.text.AttributeSet;
import javax.swing.text.BadLocationException;
import javax.swing.text.PlainDocument;
import net.sf.jasperreports.engine.JRResultSetDataSource;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.view.JasperViewer;
import utilitarios.conexao;


/**
 *
 * @author  Shinigami
 */
public class rel_fmt extends javax.swing.JFrame {

    conexao con_pesq;
    int rel = 0;//rel = 0 --> mostrar todos
                //rel = 1 --> tipo
                //rel = 2 --> qtd(menos de)
                //rel = 3 --> qtd(mais de)
    
    /** Creates new form rel_fmt */
    public rel_fmt() {
        initComponents();
     
    con_pesq = new conexao();
    con_pesq.conecta();
        
    tf_cons.setVisible(false);
    jPanel2.setVisible(false);
    
    
    }

    
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        btg_cons = new javax.swing.ButtonGroup();
        btg_qtd = new javax.swing.ButtonGroup();
        jLabel1 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        rb_tipo = new javax.swing.JRadioButton();
        rb_qtd = new javax.swing.JRadioButton();
        rb_tudo = new javax.swing.JRadioButton();
        lb_cons = new javax.swing.JLabel();
        tf_cons = tf_cons = new JTextField();
        tf_cons.setDocument( new PlainDocument()  
            {  
                @Override  
                public void insertString( int offs, String str, AttributeSet a )  
                throws BadLocationException  
                {  
                    super.insertString( offs, str.toUpperCase(), a );  
                }  
            } );  ;
            jPanel2 = new javax.swing.JPanel();
            rb_menos = new javax.swing.JRadioButton();
            rb_mais = new javax.swing.JRadioButton();
            bt_imp = new javax.swing.JButton();
            bt_sair = new javax.swing.JButton();
            jMenuBar1 = new javax.swing.JMenuBar();
            jMenu1 = new javax.swing.JMenu();
            jMenuItem1 = new javax.swing.JMenuItem();
            m_sair = new javax.swing.JMenu();

            setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
            setTitle("Gerar Relatório de Ferramentas");
            setResizable(false);

            jLabel1.setText("Selecione a consulta que deseja fazer para gerar o relatório:");

            jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 0, 0))); // NOI18N

            btg_cons.add(rb_tipo);
            rb_tipo.setText("Tipo");
            rb_tipo.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
            rb_tipo.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    rb_tipoActionPerformed(evt);
                }
            });

            btg_cons.add(rb_qtd);
            rb_qtd.setText("QTD");
            rb_qtd.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
            rb_qtd.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    rb_qtdActionPerformed(evt);
                }
            });

            btg_cons.add(rb_tudo);
            rb_tudo.setText("Mostrar tudo");
            rb_tudo.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
            rb_tudo.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    rb_tudoActionPerformed(evt);
                }
            });

            javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
            jPanel1.setLayout(jPanel1Layout);
            jPanel1Layout.setHorizontalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(rb_tipo)
                        .addComponent(rb_tudo)
                        .addComponent(rb_qtd)))
            );
            jPanel1Layout.setVerticalGroup(
                jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                    .addComponent(rb_tudo)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(rb_tipo)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(rb_qtd)
                    .addContainerGap(20, Short.MAX_VALUE))
            );

            tf_cons.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    tf_consActionPerformed(evt);
                }
            });

            jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "QTD em estoque", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 0, 0))); // NOI18N

            btg_qtd.add(rb_menos);
            rb_menos.setText("Menos de:");
            rb_menos.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
            rb_menos.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    rb_menosActionPerformed(evt);
                }
            });

            btg_qtd.add(rb_mais);
            rb_mais.setText("Mais de:");
            rb_mais.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
            rb_mais.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    rb_maisActionPerformed(evt);
                }
            });

            javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
            jPanel2.setLayout(jPanel2Layout);
            jPanel2Layout.setHorizontalGroup(
                jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createSequentialGroup()
                    .addComponent(rb_menos)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(rb_mais)
                    .addContainerGap(14, Short.MAX_VALUE))
            );
            jPanel2Layout.setVerticalGroup(
                jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(rb_menos)
                    .addComponent(rb_mais))
            );

            bt_imp.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/printer.png"))); // NOI18N
            bt_imp.setToolTipText("Imprimir");
            bt_imp.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    bt_impActionPerformed(evt);
                }
            });

            bt_sair.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/window-close.png"))); // NOI18N
            bt_sair.setToolTipText("Sair");
            bt_sair.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    bt_sairActionPerformed(evt);
                }
            });

            jMenu1.setText("Arquivo");

            jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F6, 0));
            jMenuItem1.setText("Imprimir");
            jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jMenuItem1ActionPerformed(evt);
                }
            });
            jMenu1.add(jMenuItem1);

            jMenuBar1.add(jMenu1);

            m_sair.setText("Sair");
            m_sair.addMouseListener(new java.awt.event.MouseAdapter() {
                public void mouseClicked(java.awt.event.MouseEvent evt) {
                    m_sairMouseClicked(evt);
                }
            });
            jMenuBar1.add(m_sair);

            setJMenuBar(jMenuBar1);

            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(layout.createSequentialGroup()
                                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(tf_cons, javax.swing.GroupLayout.PREFERRED_SIZE, 205, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(lb_cons, javax.swing.GroupLayout.PREFERRED_SIZE, 221, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                .addComponent(jLabel1))
                            .addContainerGap(42, Short.MAX_VALUE))
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                            .addComponent(bt_imp, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(43, 43, 43)
                            .addComponent(bt_sair, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(143, 143, 143))))
            );
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel1)
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(lb_cons, javax.swing.GroupLayout.DEFAULT_SIZE, 3, Short.MAX_VALUE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(tf_cons, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(37, 37, 37))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(18, 18, 18)))
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(bt_imp, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(bt_sair, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(55, 55, 55))
            );

            java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
            setBounds((screenSize.width-408)/2, (screenSize.height-303)/2, 408, 303);
        }// </editor-fold>//GEN-END:initComponents

private void rb_tudoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_tudoActionPerformed
    
    tf_cons.setVisible(false);
    jPanel2.setVisible(false);
    lb_cons.setText("");
    
    rel = 0;
}//GEN-LAST:event_rb_tudoActionPerformed

private void rb_tipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_tipoActionPerformed

    tf_cons.setVisible(true);
    jPanel2.setVisible(false);
    lb_cons.setText("Nome ou inicial das ferramentas:");
    tf_cons.requestFocus(true);
    
    rel = 1;
    
}//GEN-LAST:event_rb_tipoActionPerformed

private void rb_qtdActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_qtdActionPerformed
    
    jPanel2.setVisible(true);
    tf_cons.setVisible(false);
    lb_cons.setText("");
    
}//GEN-LAST:event_rb_qtdActionPerformed

private void bt_impActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_impActionPerformed

    if(rel == 0)//tudo
    {    
        
        try
            {
                con_pesq.executasql("SELECT ferramentas.`codigo`,tipos.`nome`,ferramentas.`qtd`,ferramentas.`medida`,ferramentas.`tipo` FROM`tipos` tipos INNER JOIN `ferramentas` ferramentas ON tipos.`codigo` = ferramentas.`tipo`"); 
                con_pesq.resultset.beforeFirst();
                con_pesq.resultset.beforeFirst();
                JRResultSetDataSource jrrs = new JRResultSetDataSource(con_pesq.resultset);
                JasperPrint jspimp = JasperFillManager.fillReport("relatórios/rel_fmt.jasper", new HashMap(),jrrs);
                JasperViewer.viewReport(jspimp,false);

            }
            catch(Exception erro)
            {
                JOptionPane.showMessageDialog(null, "erro ="+erro);
            }     
    }
    
    if(rel == 1)//tipo
    {
        
        try
            {
               
                if(tf_cons.getText().equals(""))
                {
                    JOptionPane.showMessageDialog(null, "Digite todo ou parte do nome do tipo de ferramenta");
                    tf_cons.requestFocus();
                    return;
                                   
                }
                
                con_pesq.executasql("SELECT ferramentas.`codigo`, tipos.`nome`,ferramentas.`qtd`,ferramentas.`medida`,ferramentas.`tipo`FROM`tipos` tipos INNER JOIN `ferramentas` ferramentas ON tipos.`nome` like '"+tf_cons.getText()+"%'AND tipos.`codigo` = ferramentas.`tipo`");
                con_pesq.resultset.beforeFirst();
                JRResultSetDataSource jrrs = new JRResultSetDataSource(con_pesq.resultset);
                JasperPrint jspimp = JasperFillManager.fillReport("relatórios/rel_fmt.jasper", new HashMap(),jrrs);
                JasperViewer.viewReport(jspimp,false);
                            
            
            }
            catch(Exception erro)
            {
                JOptionPane.showMessageDialog(null, "erro ="+erro);
            }
    }
   
    if(rel == 2)//com menos de
    {
       
    try
        {
               
                if(tf_cons.getText().equals(""))
                {
                    JOptionPane.showMessageDialog(null, "Digite a quantidade de ferramentas a pesquisar");
                    tf_cons.requestFocus();
                    return;
                                   
                }
        
                con_pesq.executasql("SELECT ferramentas.`codigo`, tipos.`nome`,ferramentas.`qtd`,ferramentas.`medida`,ferramentas.`tipo`FROM`tipos` tipos INNER JOIN `ferramentas` ferramentas ON ferramentas.`qtd` <= '"+Integer.parseInt(tf_cons.getText())+"'AND tipos.`codigo` = ferramentas.`tipo`");
                con_pesq.resultset.beforeFirst();
                JRResultSetDataSource jrrs = new JRResultSetDataSource(con_pesq.resultset);
                JasperPrint jspimp = JasperFillManager.fillReport("relatórios/rel_fmt.jasper", new HashMap(),jrrs);
                JasperViewer.viewReport(jspimp,false);
            
                
            
        }
        catch(Exception erro)
        {
            JOptionPane.showMessageDialog(null, "erro ="+erro);
        } 
    }
    
    if(rel == 3)//com mais de
    {
       
        
    try
        {
               
                if(tf_cons.getText().equals(""))
                {
                    JOptionPane.showMessageDialog(null, "Digite a quantidade de ferramentas a pesquisar");
                    tf_cons.requestFocus();
                    return;
                                   
                }
            
                con_pesq.executasql("SELECT ferramentas.`codigo`, tipos.`nome`,ferramentas.`qtd`,ferramentas.`medida`,ferramentas.`tipo`FROM`tipos` tipos INNER JOIN `ferramentas` ferramentas ON ferramentas.`qtd` >= '"+Integer.parseInt(tf_cons.getText())+"'AND tipos.`codigo` = ferramentas.`tipo`");
                con_pesq.resultset.beforeFirst();
                JRResultSetDataSource jrrs = new JRResultSetDataSource(con_pesq.resultset);
                JasperPrint jspimp = JasperFillManager.fillReport("relatórios/rel_fmt.jasper", new HashMap(),jrrs);
                JasperViewer.viewReport(jspimp,false);
            
                
            
        }
        catch(Exception erro)
        {
            JOptionPane.showMessageDialog(null, "erro ="+erro);
        }
        
    }
    tf_cons.setText("");

}
//GEN-LAST:event_bt_impActionPerformed
private void rb_menosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_menosActionPerformed
 
    tf_cons.setVisible(true);
    lb_cons.setText("QTD em estoque menor que:");
    tf_cons.requestFocus();
    
    rel = 2;
        
}//GEN-LAST:event_rb_menosActionPerformed

private void rb_maisActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_maisActionPerformed

    tf_cons.setVisible(true);
    lb_cons.setText("QTD em estoque maior que:");
    tf_cons.requestFocus();
    
    rel = 3;
        
}//GEN-LAST:event_rb_maisActionPerformed

private void bt_sairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_sairActionPerformed

    setVisible(false);
    
}//GEN-LAST:event_bt_sairActionPerformed

private void tf_consActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tf_consActionPerformed

    bt_impActionPerformed(evt);
    
}//GEN-LAST:event_tf_consActionPerformed

private void m_sairMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_m_sairMouseClicked

    setVisible(false);
    
}//GEN-LAST:event_m_sairMouseClicked

private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed

    bt_impActionPerformed(evt);
    
}//GEN-LAST:event_jMenuItem1ActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new rel_fmt().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton bt_imp;
    private javax.swing.JButton bt_sair;
    private javax.swing.ButtonGroup btg_cons;
    private javax.swing.ButtonGroup btg_qtd;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JLabel lb_cons;
    private javax.swing.JMenu m_sair;
    private javax.swing.JRadioButton rb_mais;
    private javax.swing.JRadioButton rb_menos;
    private javax.swing.JRadioButton rb_qtd;
    private javax.swing.JRadioButton rb_tipo;
    private javax.swing.JRadioButton rb_tudo;
    private javax.swing.JTextField tf_cons;
    // End of variables declaration//GEN-END:variables

}
